package cn.git.agent.enhance;

/** 
 * @description: 处理一个类的上下文状态
 * @program: bank-credit-sy
 * @author: lixuchun
 * @create: 2024-12-26
 */
public class EnhancedContext {

    /**
     * 是否被增强
     */
    private boolean isEnhanced = false;

    /**
     * 是否被扩展,新增属性 CONTEXT_ATTR_NAME
     */
    private boolean objectExtended = false;


    public boolean isEnhanced() {
        return isEnhanced;
    }

    public boolean isObjectExtended() {
        return objectExtended;
    }

    public void initializationStageCompleted() {
        this.isEnhanced = true;
    }

    public void objectExtendedCompleted() {
        this.objectExtended = true;
    }

}
